home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Drawing / NamedColors.h < prev    next >
Text File  |  1997-06-28  |  3KB  |  116 lines

  1. // NamedColors.h
  2.  
  3. #ifndef NamedColors_h
  4. #define NamedColors_h
  5.  
  6. class NamedColors
  7.   {
  8.     public:
  9.         // Grays
  10.             static const RGBColor white;
  11.             static const RGBColor lightGray;
  12.             static const RGBColor gray;
  13.             static const RGBColor darkGray;
  14.             static const RGBColor black;
  15.  
  16.         // Other corners of the color cube
  17.             static const RGBColor red;
  18.             static const RGBColor green;
  19.             static const RGBColor blue;
  20.  
  21.             static const RGBColor cyan;
  22.             static const RGBColor magenta;
  23.             static const RGBColor yellow;
  24.         
  25.         // Face centers
  26.             static const RGBColor lightRed;
  27.             static const RGBColor lightGreen;
  28.             static const RGBColor lightBlue;
  29.  
  30.             static const RGBColor darkCyan;
  31.             static const RGBColor darkMagenta;
  32.             static const RGBColor darkYellow;
  33.         
  34.         // Edge midpoints
  35.             static const RGBColor darkRed;
  36.             static const RGBColor darkGreen;
  37.             static const RGBColor darkBlue;
  38.  
  39.             static const RGBColor lightCyan;
  40.             static const RGBColor lightMagenta;
  41.             static const RGBColor lightYellow;
  42.         
  43.             static const RGBColor greenishCyan;
  44.             static const RGBColor blueishCyan;
  45.             
  46.             static const RGBColor reddishMagenta;
  47.             static const RGBColor blueishMagenta;
  48.             
  49.             static const RGBColor reddishYellow;
  50.             static const RGBColor greenishYellow;
  51.  
  52.         // Corners of the half-size color cube
  53.             static const RGBColor mediumRed;
  54.             static const RGBColor mediumGreen;
  55.             static const RGBColor mediumBlue;
  56.  
  57.             static const RGBColor mediumCyan;
  58.             static const RGBColor mediumMagenta;
  59.             static const RGBColor mediumYellow;
  60.         
  61.         // Half size face centers
  62.             static const RGBColor mediumLightRed;
  63.             static const RGBColor mediumLightGreen;
  64.             static const RGBColor mediumLightBlue;
  65.  
  66.             static const RGBColor mediumDarkCyan;
  67.             static const RGBColor mediumDarkMagenta;
  68.             static const RGBColor mediumDarkYellow;
  69.         
  70.         // Half size edge midpoints
  71.             static const RGBColor mediumDarkRed;
  72.             static const RGBColor mediumDarkGreen;
  73.             static const RGBColor mediumDarkBlue;
  74.  
  75.             static const RGBColor mediumLightCyan;
  76.             static const RGBColor mediumLightMagenta;
  77.             static const RGBColor mediumLightYellow;
  78.         
  79.             static const RGBColor mediumGreenishCyan;
  80.             static const RGBColor mediumBlueishCyan;
  81.             
  82.             static const RGBColor mediumReddishMagenta;
  83.             static const RGBColor mediumBlueishMagenta;
  84.             
  85.             static const RGBColor mediumReddishYellow;
  86.             static const RGBColor mediumGreenishYellow;
  87.             
  88.         // From the Apple Grayscale Appearance
  89.             static const RGBColor appleGray1;
  90.             static const RGBColor appleGray2;
  91.             static const RGBColor appleGray3;
  92.             static const RGBColor appleGray4;
  93.             static const RGBColor appleGray5;
  94.             static const RGBColor appleGray6;
  95.             static const RGBColor appleGray7;
  96.             static const RGBColor appleGray8;
  97.             static const RGBColor appleGray9;
  98.             static const RGBColor appleGray10;
  99.             static const RGBColor appleGray11;
  100.             static const RGBColor appleGray12;
  101.             static const RGBColor appleGrayA1;
  102.             static const RGBColor appleGrayA2;
  103.   };
  104.  
  105. inline bool operator==( const RGBColor& a, const RGBColor& b )
  106.   {
  107.     return a.red == b.red && a.green == b.green && a.blue == b.blue;
  108.   }
  109.  
  110. inline bool operator!=( const RGBColor& a, const RGBColor& b )
  111.   {
  112.     return a.red != b.red || a.green != b.green || a.blue != b.blue;
  113.   }
  114.  
  115. #endif
  116.